import { FrownOutlined, SmileOutlined } from "@ant-design/icons";
interface IParams {
    alterShow: boolean,
    status: number,
    addCarShow: boolean,
    inspir:boolean,
    setInspir:any
}
function AlterBox({ alterShow, status, addCarShow ,inspir,setInspir}: IParams) {
    return (
        <div>
            <div className="alterBox" style={{ display: (alterShow === true ? 'flex' : 'none'), backgroundColor: (status === 200 ? '#56CB8F' : ' #8D91FF') }}>
                <div className="success" style={{ display: (status === 200 ? 'flex' : 'none') }}>
                    <SmileOutlined style={{ color: 'white', fontSize: '40px' }} />
                    <div style={{ color: 'white', marginLeft: '20px' }}>评论成功</div>
                </div>
                <div className="falied" style={{ display: (status === -1 ? 'flex' : 'none') }}>
                    <FrownOutlined style={{ color: 'white', fontSize: '40px' }} />
                    <div style={{ color: 'white', marginLeft: '20px' }}>评论不能为空</div>
                </div>
            </div>
            <div className="alterBox" style={{ display: (addCarShow === true ? 'flex' : 'none'), backgroundColor: '#56CB8F' }}>
                <div className="success">
                    <SmileOutlined style={{ color: 'white', fontSize: '40px' }} />
                    <div style={{ color: 'white', marginLeft: '20px' }}>已经收到您的购买意向，我们将尽快联系作者</div>
                </div>
            </div>
            <div className="inspiration" style={{display:(inspir===true?'flex':'none')}} onClick={()=>{setInspir(false)}}>
                <div className="alterCenter">
                    <div className="title">添加到灵感集</div>
                    <div className="centerContent">您尚未创建灵感集</div>
                    <div className="b">
                    <img src={'https://7mx.com/static/img/paixin_cute_1.7c7016a.png'} alt="" />
                    </div>
                    <div className="createInsp">创建新灵感集</div>
                </div>
            </div>
        </div>
    )
}

export default AlterBox;